<!DOCTYPE html>
<html>
<head>
<title>配网故障抢修系统首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport"
			content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta name="format-detection" content="telephone=no" />
		<meta name="format-detection" content="email=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<!--删除默认的苹果工具栏和菜单栏。-->
		<link rel="stylesheet" href="plug-in/ydui/css/ydui.css?rev=@@hash"/>
		<link rel="stylesheet" href="plug-in/ydui/css/demo.css"/>
		<script src="plug-in/ydui/js/ydui.flexible.js"></script>
		<style type="text/css">
			.demo-pagetitle{
				position:relative;
				top:10%;
			}
			.demo-pagetitle-style{
				font-size: .41rem;
				text-align: center;
				position:relative;
				top:10%;
				color: #FF5E53;
			}
	    	.m-grids-4{
	    		top:20%;
	    		background:transparent;
	    	}
	    	
			.m-grids-4 .grids-item {
				width: 50%;
			}
			.demo-icons [class^="icon-"]:before, .demo-icons [class*=" icon-"]:before { font-size: 0.6rem; color: #FF685D; }
    	</style>
		<link rel="stylesheet" href="webpage/css/login-main.css" />
		<script type="text/javascript" src="webpage/jQuery/jquery-1.9.1.js"></script>
		<script type="text/javascript">
		</script>
</head>
<body style="background-image: url('webpage/images/07.png'); background-repeat:no-repeat; background-size:cover; background-position:0% 0%;">
	<!-- <div class="div"></div> -->
	<section class="g-flexview">
	    <div class="g-scrollview" style="position:relative; top:50px;">
	        <h2 class="demo-pagetitle-style" id="abc"  style="color:#008B8B;">,欢迎进入配网故障抢修系统</h2>
	        <ul class="m-grids-4 demo-icons">
	            <li class="grids-item"  onclick="js_tomelfunction()">
	                <div class="grids-icon">
	                    <i class="icon-warn-outline"></i>
	                </div>
	                <div class="grids-txt gz-txt" style="color:#fff">故障回馈</div>
	            </li>
	            <li class="grids-item" onclick="js_tostatement()">
	                <div class="grids-icon">
	                    <i class="icon-feedback"></i>
	                </div>
	                <div class="grids-txt gz-txt" style="color:#fff">报表汇总</div>
	            </li>
	        </ul>
	        <ul class="m-grids-4 demo-icons">
	            <li class="grids-item" onclick="js_admin()">
	                <div class="grids-icon">
	                    <i class="icon-setting"></i>
	                </div>
	                <div class="grids-txt gz-txt" style="color:#fff">管理中心</div>
	            </li>
	            <li class="grids-item" onclick="js_setting()" >
	                <div class="grids-icon">
	                    <i class="icon-ucenter"></i>
	                </div>
	                <div class="grids-txt gz-txt" style="color:#fff">个人中心</div>
	            </li>
	        </ul>
	        <ul class="m-grids-4 demo-icons">
	            <li class="grids-item" onclick="js_work()">
	                <div class="grids-icon">
	                    <i class="icon-order"></i>
	                </div>
	                <div class="grids-txt gz-txt" style="color:#fff">派单中心</div>
	            </li>
	            <li class="grids-item" onclick="js_other()" >
	                <div class="grids-icon">
	                    <i class="icon-more"></i>
	                </div>
	                <div class="grids-txt gz-txt" style="color:#fff">退出系统</div>
	            </li>
	        </ul>
	    </div>
	</section>
</body>
<script type="text/javascript">
	$(function(){
		$.ajax({
			type:"post",
			dataType:"json",
			url:"loginController.do?getUserName",
			success:function(json){
				if(json.success){
					var abc = $("#abc").text();
					var entity = json.obj;
					var userKey = entity.userKey;
					$("#abc").html(userKey+abc);
				}
			},
		});
		if (window.history && window.history.pushState) {
			$(window).on('popstate', function () {
				window.history.pushState('forward', null, '#');
				window.history.forward(1);
			});
		}
		window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
		window.history.forward(1);
	})
	function js_tomelfunction(){
		window.location.href = "infomelController.do?toMelfunction";
	}
	function js_setting(){
		window.location.href = "userController.do?list";
	}
	function js_admin(){
		window.location.href = "systemController.do?list";
	}
	function js_tostatement(){
		window.location.href = "statementController.do?toStatement";
	}
	function js_work(){//工单派发
		window.location.href = "systemController.do?toWork";
	}
	function js_other(){//其他
		var r=confirm("确定要退出吗？")
		  if (r==true)
		    {
			  window.location.href = "loginController.do?toLogin";
		    }
		  else
		    {
		    return false;
		    }
	}
</script>
</html>